package com.kly.user.db.dao;
import com.fqgj.common.base.BaseMapper;
import com.kly.user.db.entity.UserAlbumsContentEntity;

import java.util.List;
import java.util.Map;

/**
* User: yujianfu
* Date: 2023-05-22
* Time: 10:46:07.404
*/

public interface UserAlbumsContentDao  extends BaseMapper<UserAlbumsContentEntity> {

    int batchInsert(List<UserAlbumsContentEntity> list);

    int deleteByAlbumCode(String albumCode);

    int deleteByImageCode(String imageCode);

    List<UserAlbumsContentEntity> selectByUserCode(String userCode, Integer type);

    List<UserAlbumsContentEntity> selectByAlbumCode(String albumsCode);

    List<UserAlbumsContentEntity> selectSortByAlbumCode(String albumsCode);

    UserAlbumsContentEntity selectByImageCode(String imageCode);

    List<UserAlbumsContentEntity> selectByUserCodeAndImageCode(Map<String,Object> map);

    List<UserAlbumsContentEntity> queryImagesByAlbumTypes(List<String> userCodes, List<Integer> albumTypes);

}